package com.xyoto.takeawayBusiness.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/4/26  19:19
 */
@ApiModel("添加商品分类")
@Data
public class MenuTypeDTO {

    @ApiModelProperty("分类名称")
    @NotNull(message = "分类名称不能为空")
    private String typeName;

    @ApiModelProperty("商铺id")
    @Min(value = 0,message = "商铺id最小为0")
    @NotNull(message = "商铺id不能为空")
    private Integer shopId;
}
